aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/[username]/receive
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-08-22 15:49:08 -0700
committerAdam Soltys <[email protected]>2022-08-22 15:49:08 -0700
commit0ebb60f986682ad8d3538c2fd1d708a861e0b1fb (patch)
tree7a824114c5fd70fe42758d35d215fefdec8a7599 /src/routes/[username]/receive
parentb1843d46dd406f6f7a657ab680407644f096e2c3 (diff)
downloadcoinos-ui-0ebb60f986682ad8d3538c2fd1d708a861e0b1fb.tar.gz
coinos-ui-0ebb60f986682ad8d3538c2fd1d708a861e0b1fb.zip
migrate to sveltekit-i18n
Diffstat (limited to 'src/routes/[username]/receive')
-rw-r--r--src/routes/[username]/receive/+page.svelte8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/routes/[username]/receive/+page.svelte b/src/routes/[username]/receive/+page.svelte
index 2706ec86..3ac2aa27 100644
--- a/src/routes/[username]/receive/+page.svelte
+++ b/src/routes/[username]/receive/+page.svelte
@@ -5,7 +5,7 @@
import { invoiceAmount, invoiceAmountFiat, selectedRate, user } from '$lib/store';
import { post, warning } from '$lib/utils';
import { page } from '$app/stores';
- import { _, number } from 'svelte-i18n';
+ import { t } from '$lib/translations';
let useFiat = true;
let amountFiat = 0;
@@ -53,7 +53,7 @@
}
}
} else if (value !== '.' && value !== '<' && parseInt(amountFiat + value) > $selectedRate) {
- warning($_('user.receive.lessThan1BTCWarning'));
+ warning($t('user.receive.lessThan1BTCWarning'));
} else if (amountFiat !== 0 && amountFiat.match(/\.../)) {
return;
} else {
@@ -73,7 +73,7 @@
}
}
} else if (value !== '<' && parseInt(amountSats + value) > 100000000) {
- warning($_('user.receive.lessThan1BTCWarning'));
+ warning($t('user.receive.lessThan1BTCWarning'));
} else {
amountSats = amountSats + value;
}
@@ -185,7 +185,7 @@
: 'opacity-100'}"
on:click={submit}
disabled={$invoiceAmount === 0}
- ><Icon icon="qr" style="mr-2" /> {$_('user.receive.showQR')}</button
+ ><Icon icon="qr" style="mr-2" /> {$t('user.receive.showQR')}</button
>
<!--
<button